-
Notifications
You must be signed in to change notification settings - Fork 54
Convert Go e2e test to Python Test to leverage SDK directly #451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert Go e2e test to Python Test to leverage SDK directly #451
Conversation
28efa45
to
8e29291
Compare
7df7353
to
febd339
Compare
a16887b
to
61a01df
Compare
0c630a0
to
e8ff630
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
e8ff630
to
f624d23
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
This is great :) Ran the tests locally also and they run through as expected |
11e757d
to
c53db36
Compare
I mistakenly pushed to this branch by accident, reverted changes. No new changes have been made - good to merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What user is impersonated to run the tests? It seems it's using the default user that's cluster admin, in which case that's a regression from the existing e2e tests?
project-codeflare/codeflare-common#33 is adding support for custom user. That can be used to specify user with specific allowed roles. |
@astefanutti @sutaakar , I was told to keep the issues separated where after merging we would add the unprivileged user to run the test: https://issues.redhat.com/browse/RHOAIENG-60 We could add it in the scope of this PR too if preferred. |
I added in the e2e workflow an |
For local testing, I'd avoid mixing provisioning and testing logic, so an option would be to document how to setup the cluster (even specific to KinD would be fine) and run the tests with the correct user. |
/lgtm |
That makes sense, thanks Antonin! I added e2e documentation there now and updated the readme. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve Great job! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: astefanutti, Bobbins228 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Issue link
Jira: https://issues.redhat.com/browse/RHOAIENG-2058
What changes have been made
ingress_options
in the script to include this annotation:nginx.ingress.kubernetes.io/proxy-body-size: "100M"
, else, on KinD, we would encounter the following error:sdk-user
with limited permissions on KinD cluster to run the e2e tests.Verification steps
kind.sh
script).To run the e2e test locally on KinD cluster, follow these steps:
Note: If not already done so, please add in your local
/etc/hosts
file127.0.0.1 kind
. This will map your localhost IP address to the KinD cluster's hostname. This is already performed on GitHub ActionsTo run the e2e test locally on OpenShift, follow these steps:
Checks